FROM java:8
RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
ADD sw-sewage-nacos-1.0-SNAPSHOT-fatjar.jar /opt/springcloud/sw-sewage/
WORKDIR /opt/springcloud/sw-sewage
VOLUME ["/opt/springcloud/sw-sewage/download","/opt/springcloud/sw-sewage/download"]
VOLUME ["/opt/springcloud/sw-sewage/uploadPath","/opt/springcloud/sw-sewage/uploadPath"]
EXPOSE 20610
CMD ["java","-jar", "sw-sewage-nacos-1.0-SNAPSHOT-fatjar.jar","--spring.profiles.active=test","--spring.application.name=sw-sewage-app"]